/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
//
const knowledgeRouter = {
  path: '/knowledge',
  component: Layout,
  hidden:false,
  redirect: 'noRedirect',
  name: '知识库',
  meta: {
    title: '知识库',
    icon: 'documentation',
    roles: ['knowledge']
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/knowledge/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'derivative',
      component: () => import('@/views/knowledge/index'),
      name: '衍生品',
      meta: { title: '衍生品' },
      children:[
        {
          path: 'option',
          component: () => import('@/views/knowledge/option/option'),
          name: '期权',
          meta: { title: '期权' }
        },
        {
          path: 'option-add',
          component: () => import('@/views/knowledge/option/option-add'),
          name: '新期权',
          hidden: true,
          meta: {
            title: '新期权'
          }
        },
        {
          path: 'futures',
          component: () => import('@/views/knowledge/futures/futures'),
          name: '期货',
          meta: { title: '期货' }
        },
        {
          path: 'futures-detail',
          component: () => import('@/views/knowledge/futures/futures-detail'),
          name: '期货',
          hidden: true,
          meta: { title: '期货' }
        },
        {
          path: 'futures-add',
          component: () => import('@/views/knowledge/futures/futures-add'),
          name: '新期货',
          hidden: true,
          meta: {
            title: '新期货'
          }
        },

      ]
    },
    {
      path: 'geography',
      component: () => import('@/views/knowledge/index'),
      name: '地理',
      meta: { title: '地理' },
      children:[
        {
          path: 'district',
          component: () => import('@/views/knowledge/district/district'),
          name: '区域',
          meta: { title: '区域' }
        },
        {
          path: 'district-add',
          component: () => import('@/views/knowledge/district/district-add'),
          name: '新区域',
          hidden: true,
          meta: {
            title: '新区域'
          }
        },
        {
          path: 'district-detail',
          component: () => import('@/views/knowledge/district/district-detail'),
          name: '区域档案',
          hidden: true,
          meta: {
            title: '区域档案'
          }
        },
        {
          path: 'district-import',
          component: () => import('@/views/knowledge/district/district-import'),
          name: '区域导入',
          hidden: true,
          meta: {
            title: '区域导入'
          }
        },
        
      ]
    },
    {
      path: 'chanye',
      component: () => import('@/views/knowledge/index'),
      name: '产业',
      meta: { title: '产业' },
      children:[
        {
          path: 'policy',
          component: () => import('@/views/knowledge/policy/policy'),
          name: '政策',
          meta: { title: '政策' }
        },
        {
          path: 'policy-add',
          component: () => import('@/views/knowledge/policy/policy-add'),
          name: '新政策',
          hidden: true,
          meta: {
            title: '新政策'
          }
        },
        {
          path: 'production',
          component: () => import('@/views/knowledge/production/production'),
          name: '产品',
          meta: { title: '产品' }
        },
        {
          path: 'production-add',
          component: () => import('@/views/knowledge/production/production-add'),
          name: '新产品',
          hidden: true,
          meta: {
            title: '新产品'
          }
        },
        {
          path: 'company',
          component: () => import('@/views/knowledge/company/company'),
          name: '公司',
          meta: { title: '公司' }
        },
        {
          path: 'company-add',
          component: () => import('@/views/knowledge/company/company-add'),
          name: '新公司',
          hidden: true,
          meta: {
            title: '新公司'
          }
        },
        {
          path: 'industrial',
          component: () => import('@/views/knowledge/industrial/industrial'),
          name: '产业',
          meta: { title: '产业' }
        },
        {
          path: 'industrial-import',
          component: () => import('@/views/knowledge/industrial/industrial-import'),
          name: '产业导入',
          hidden: true,
          meta: {
            title: '产业导入'
          }
        },
        {
          path: 'industrial-add',
          component: () => import('@/views/knowledge/industrial/industrial-add'),
          name: '新产业',
          hidden: true,
          meta: {
            title: '新产业'
          }
        },
        {
          path: 'video',
          component: () => import('@/views/knowledge/video/video'),
          name: '视频',
          meta: { title: '视频' }
        },
        {
          path: 'video-add',
          component: () => import('@/views/knowledge/video/video-add'),
          name: '新视频',
          hidden: true,
          meta: {
            title: '新视频'
          }
        },
        {
          path: 'video-detail',
          component: () => import('@/views/knowledge/video/video-detail'),
          name: '新视频',
          hidden: true,
          meta: {
            title: '新视频'
          }
        },

      ]
    },
    {
      path: 'complaint',
      component: () => import('@/views/knowledge/index'),
      name: '舆情',
      meta: { title: '舆情' },
      children:[
        {
          path: 'complaint',
          component: () => import('@/views/knowledge/complaint/complaint'),
          name: '投诉',
          meta: { title: '投诉' }
        },
        {
          path: 'complaint-add',
          component: () => import('@/views/knowledge/complaint/complaint-add'),
          name: '新投诉',
          hidden: true,
          meta: {
            title: '新投诉'
          }
        },
        {
          path: 'complaint-detail',
          component: () => import('@/views/knowledge/complaint/complaint-add'),
          name: '投诉档案',
          hidden: true,
          meta: {
            title: '投诉档案'
          }
        },
        {
          path: 'bulletin',
          component: () => import('@/views/knowledge/bulletin/bulletin'),
          name: '快讯',
          meta: { title: '快讯' }
        },
        {
          path: 'bulletin-add',
          component: () => import('@/views/knowledge/bulletin/bulletin-add'),
          name: '新快讯',
          hidden: true,
          meta: {
            title: '新快讯'
          }
        },
        {
          path: 'bulletin-detail',
          component: () => import('@/views/knowledge/bulletin/bulletin-detail'),
          name: '快讯档案',
          hidden: true,
          meta: {
            title: '快讯档案'
          }
        },
        {
          path: 'question',
          component: () => import('@/views/knowledge/question/question'),
          name: '问题',
          meta: { title: '问题' }
        },
        {
          path: 'question-add',
          component: () => import('@/views/knowledge/question/question-add'),
          name: '新问题',
          hidden: true,
          meta: {
            title: '新问题'
          }
        },
        {
          path: 'question-detail',
          component: () => import('@/views/knowledge/question/question-detail'),
          name: '问题档案',
          hidden: true,
          meta: {
            title: '问题档案'
          }
        },
        {
          path: 'documentation',
          component: () => import('@/views/knowledge/documentation/documentation'),
          name: '文章',
          meta: { title: '文章' }
        },
        {
          path: 'documentation-add',
          component: () => import('@/views/knowledge/documentation/documentation-add'),
          hidden: true,
          name: '新文章',
          meta: {
            title: '新文章'
          }
        },

      ]
    },
    {
      path: 'setting',
      component: () => import('@/views/knowledge/index'),
      name: '配置管理',
      meta: { title: '配置管理' },
      children:[
        {
          path: 'originate',
          component: () => import('@/views/knowledge/originate/originate'),
          name: '渠道',
          meta: { title: '渠道' }
        },
        {
          path: 'originate-add',
          component: () => import('@/views/knowledge/originate/originate-add'),
          name: '新渠道',
          hidden: true,
          meta: {
            title: '新渠道'
          }
        },
        {
          path: 'exchange',
          component: () => import('@/views/knowledge/exchange/exchange'),
          name: '交易所',
          meta: { title: '交易所' }
        },
        {
          path: 'exchange-add',
          component: () => import('@/views/knowledge/exchange/exchange-add'),
          name: '新交易所',
          hidden: true,
          meta: {
            title: '新交易所'
          }
        },
        {
          path: 'catalogue',
          component: () => import('@/views/knowledge/catalogue/catalogue'),
          name: '栏目',
          meta: { title: '栏目' }
        },
        {
          path: 'catalogue-import',
          component: () => import('@/views/knowledge/catalogue/catalogue-import'),
          name: '栏目导入',
          hidden: true,
          meta: {
            title: '栏目导入'
          }
        },
        {
          path: 'catalogue-add',
          component: () => import('@/views/knowledge/catalogue/catalogue-add'),
          name: '新栏目',
          hidden: true,
          meta: {
            title: '新栏目'
          }
        },
        {
          path: 'keyword',
          component: () => import('@/views/knowledge/keyword/keyword'),
          name: '标签',
          meta: { title: '标签' }
        },
        {
          path: 'keyword-add',
          component: () => import('@/views/knowledge/keyword/keyword-add'),
          name: '新标签',
          hidden: true,
          meta: {
            title: '新标签'
          }
        },
        {
          path: 'special',
          component: () => import('@/views/knowledge/special/special'),
          name: '专题',
          meta: { title: '专题' }
        },
        {
          path: 'special-add',
          component: () => import('@/views/knowledge/special/special-add'),
          name: '新专题',
          hidden: true,
          meta: {
            title: '新专题'
          }
        },
        {
          path: 'special-detail',
          component: () => import('@/views/knowledge/special/special-detail'),
          name: '新专题',
          hidden: true,
          meta: {
            title: '新专题'
          }
        },
        {
          path: 'quality',
          component: () => import('@/views/knowledge/quality/quality'),
          name: '属性',
          meta: { title: '属性' }
        },
        {
          path: 'quality-add',
          component: () => import('@/views/knowledge/quality/quality-add'),
          name: '新属性',
          hidden: true,
          meta: {
            title: '新属性'
          }
        },

      ]
    },
  ]
}

export default knowledgeRouter
